package com.example.artwindow.service;

import com.example.artwindow.domain.po.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.artwindow.domain.dto.UserUpdateDTO;
import com.example.artwindow.domain.vo.CommentUserVO;
import com.example.artwindow.domain.vo.UserInfoVO;
import com.example.artwindow.domain.vo.UserLoginVO;
import com.example.artwindow.domain.dto.UserRegisterDTO;
import com.example.artwindow.result.Result;
import org.apache.ibatis.jdbc.Null;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
* @author EiEi
* @description 针对表【user_info(用户信息管理)】的数据库操作Service
* @createDate 2023-12-01 14:27:06
*/
public interface UserService extends IService<User> {

	Result<?> userRegister(UserRegisterDTO userRegisterDTO);

	Result<UserLoginVO> userLogin(User user);

	Result<UserInfoVO> userSearch(Long id);


	Result<Null> userUpdate(UserUpdateDTO userUpdateDTO, MultipartFile profilePhoto);

	Result<Null> userDelete();
	List<CommentUserVO> selectCommentUsers(List<Long> userIds);
}
